import java.util.List;

import model.map.Direction;
import model.map.GameMap;
import model.map.GameTile;
import model.map.MapMaker;


public class MapTester
{
	public static void main(String[] args)
	{
		GameMap map = MapMaker.mapMaker.getNewMap();
		
		for (int i = 0; i < map.getMapLength(); i++)
		{
			for (int j = 0; j < map.getMapHeight(); j++)
			{
				System.out.println(map.getTileAt(i, j) + "\n");
			}
		}
		
		
		System.out.println("testing gta");
		List<GameTile> l = map.getTilesAround(map.getTileAt(3, 3), 2);
		
		System.out.println("testing gta on border");
		List<GameTile> l2 = map.getTilesAround(map.getTileAt(0, 3), 2);
		
		
		System.out.println("Getting tiles around 3,3:");
		for (GameTile t : l)
		{
			System.out.println(t);
		}
		
		System.out.println("Getting tiles around 0,3:");
		for (GameTile t : l2)
		{
			System.out.println(t);
		}
		
		List<Direction> dirs1 = map.getDirections(map.getTileAt(2, 2), map.getTileAt(0,0));
		System.out.println("Directions from 2,2 to 0,0");
		for (Direction d : dirs1)
			System.out.println(d);
		
		List<Direction> dirs2 = map.getDirections(map.getTileAt(2, 2), map.getTileAt(0,10));
		System.out.println("Directions from 2,2 to 0,10");
		for (Direction d : dirs2)
			System.out.println(d);
	}
}
